import '@/assets/css/base.css'
import '@/assets/css/index.sass'
import dayjs from '@/dayjs'
import store from '@/store'
import App from '@/views/dictionary/Dictionary.vue'
import ElementPlus from 'element-plus'
import { createApp } from 'vue'

if ((process.env.NODE_ENV === 'production') && !/\/\/www\./i.test(location.href)) {
  location.href = location.href.replace(/\/\//i, '//www.')
}

const ua = window.navigator.userAgent

window.isMobile = /(iPhone|iPad|iPod|iOS|Android)/i.test(ua)
// window.isWeixin = (ua.toLowerCase().match(/MicroMessenger/i) =

const app = createApp(App)

app.use(ElementPlus).use(store).use(dayjs).mount('#app')
